package com.ddx.service;


import com.ddx.dto.ShoppingCartVo;
import com.ddx.pojo.ShoppingCart;

import java.util.List;

/**
 * @author dudianbo
 * @ClassName: ${CLASSNAME}
 * @Description: ${DESCRIPTION}
 * @date 2018/9/5
 */
public interface IShoppingCartService {

    /**
     * 获取用户购物车
     * @param userId
     * @return
     */
    public List<ShoppingCartVo> cartInfo(String userId);
    /**
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    public void addCart(ShoppingCart shoppingCart);
    /**
     * 根据id更改商品数量
     */
    public void updateCount(ShoppingCart shoppingCart);
    /**
     * 删除商品
     */
    public void deleteById(Integer id);
}
